import { Layout } from '@/utils/routerHelper'

/**
 * dp.html 页面路由配置
 */
const dpRouter: AppRouteRecordRaw[] = [
  {
    path: '/dp',
    component: Layout,
    name: 'Dp',
    meta: {
      title: '数据平台',
      icon: 'ep:data-line',
      alwaysShow: true
    },
    children: [
      {
        path: 'index',
        name: 'DpIndex',
        component: () => import('@/components/IFrame/src/IFrame.vue'),
        meta: {
          title: '数据平台',
          noCache: true
        },
        props: {
          src: '/src/views/dp/dp.html'
        },
        target: '_blank'
      }
    ]
  },
  {
    path: '/dp-vue',
    component: () => import('@/views/dp-vue/Index.vue'),
    name: 'DpVue',
    meta: {
      title: '数据平台Vue版',
      noTagsView: true,
      hidden: true
    }
  },
  {
    path: '/dp-standalone',
    component: () => import('@/layout/components/BlankLayout.vue'),
    name: 'DpStandalone',
    meta: {
      title: '数据平台',
      noTagsView: true,
      hidden: true
    },
    children: [
      {
        path: 'index',
        name: 'DpStandaloneIndex',
        component: () => import('@/components/IFrame/src/IFrameStandalone.vue'),
        meta: {
          title: '数据平台',
          noCache: true
        },
        props: {
          src: '/src/views/dp/dp.html'
        }
      }
    ]
  }
]

export default dpRouter